//
//  MissingsSearchAppAppDelegate.m
//  MissingsSearchApp
//
//  Created by Tamas Nagy on 5/10/11.
//  Copyright 2011 home. All rights reserved.
//

#import "MissingsSearchAppAppDelegate.h"

@implementation MissingsSearchAppAppDelegate

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
 
    NSDictionary *xx = [NSDictionary dictionaryWithObjectsAndKeys:@"/users/fefe.mov",@"xx", @"/users/fefefe.mov", @"xy", nil];
    
    sourceDict = [[NSDictionary alloc] initWithObjectsAndKeys:@"/Users/tamasnagy/Pictures/Photo Boothx/Photo on 2010-12-24 at 13.41.jpg", @"key1",@"/Photo on 2010-12-24 at 13.40.jpg", @"key2", [NSNumber numberWithFloat:0],@"key3", xx, @"xx",nil];
        

    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(spotlightSearchFinished:)
                                                 name:@"SpotlightSearchFinished" object:nil];

    [controller checkDictionary:sourceDict];
    
    [[NSNotificationCenter defaultCenter] removeObserver:self name:@"SpotlightSearchFinished" object:nil];
    
}

-(void)spotlightSearchFinished:(NSNotification *)notification {
    
    waitforsearch = NO;
}

@end
